Skip to main content

barcodeDetected

Type

message

Summary

Sent when a new barcode is detected.

Syntax

barcodeDetected <pBarcode>, <pID>

Description

The barcodeDetected message is sent when a new barcode is detected.

Parameters

NameTypeDescription

pBarcode

An array of the barcode's data which has the following keys:

  • format: The barcode format. One of:
    - contact information
- email
- isbn
- phone number
- product code
- sms
- text
- url
- wifi
- geo point
- calendar event
- driver license
- unknown
- value format: The format of the barcode\'s value. One of:
- Aztec
- Codabar
- Code 39
- Code 93
- Code 128
- Data Matrix
- EAN 8
- EAN 13
- ITF
- PDF 417
- QR Code
- UPC A
- UPC E
- unknown
- raw value: The barcode\'s value as it was encoded in the barcode.
- display value: The barcode\'s value formatted for display.
- parsed value: An array containing the fully formatted barcode value.
- snapshot: An array containing the barcode\'s snapshot data. This will only be
set if the [snapshotMode](/docs/LiveCode%20Script/Widgets/Android%20Barcode%20Scanner/Properties/snapshotMode) has been set appropriately. The keys are:
- width: The width in pixels of the snapshot
- height: The height in pixels of the snapshot
- pixels: The raw pixels of the snapshot

pID

The id used to reference the barcode.

message: barcodeRemoved, barcodeClicked

property: snapshotMode

Compatibility and Support

OS

android